/*
# @Time    : 2018/4/26 11:46
# @Author  : Mickel Xiang
# @File    : md5.go
# @Function: -----------
*/
package encode

import (
	"crypto/md5"
	"fmt"
)

func MD5ByStr(str, salt string) (md5str string, nil error) {

	data := []byte(str)
	has := md5.Sum(data)
	md5str = fmt.Sprintf("%x", has) //将[]byte转成16进制
}
